#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#define cmfoot 30.48
#define footinch 12
int main()
{
	float cm, inch;
	int foot;
	printf("Enter a height in centimeters:");
	scanf_s("%f",&cm);
	while (cm > 0)
	{
		foot = cm / cmfoot;
		inch = ((cm / cmfoot) - foot) * footinch;
		printf("%.1f cm = %d feet, %.1f inch\n",cm,foot,inch);
		printf("Enter a height in centimeters:\n");
		scanf_s("%f", &cm);
	}
	printf("bye");
	return 0;
}